<template>
  <div class="app">
    <h2>我是App组件</h2>
    <button @click="show">点我</button>
    <Person/>
    <hr>
    <School/>
  </div>
</template>

<script>
    import Person from './components/Person.vue'
    import School from './components/School.vue'

    export default {
        name:'App',
        components:{Person,School},
        methods: {
          show(){
            console.log(this.a)
          }
        },
    }
</script>

<style>
    .app {
        background-color: gray;
        padding: 20px;
    }
</style>